package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.User;
import cn.wolfcode.trip.base.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    int deleteByPrimaryKey(Long id);

    int insert(User record);

    User selectByPrimaryKey(Long id);
    List<Long> selectAll();



    int updateByPrimaryKey(User record);

    User checkEmail(String email);

    User checkUserByEmailAndPassword(@Param("password") String password, @Param("email") String email);

    List<User> queryForList(QueryObject qo);
}